<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	template="/WEB-INF/layouts/content.xhtml">

	<ui:define name="content">
		<h:form id="registrationForm">
		<h2><h:outputText value="#{messageSource['user.registration']}" class="headline"/></h2>
		<h:messages></h:messages>
		<div class="input"><div class="description">#{messageSource['login']}*</div><h:inputText id="login"
				value="#{user.login}" /><h:message for="login" /></div>
					
			
			<div class="input"><div class="description">#{messageSource['password']}*</div><h:inputSecret id="password"
				value="#{user.password}" /><h:message for="password" /></div>
			
			<div class="input"><div class="description">#{messageSource['idcard']}*</div><h:inputText id="idcard"
				value="#{user.idcard}" /><h:message for="idcard" /></div>	

			<div class="input"><div class="description">#{messageSource['email']}*</div><h:inputText id="email"
				value="#{user.email}" /><h:message for="email" /></div>				
				
			<p:separator />  
			<h4><h:outputText value="#{messageSource['contact']}" class="title"/></h4>	
			<div class="input"><div class="description">#{messageSource['firstname']}*</div><h:inputText id="firstname"
				value="#{user.firstname}" /><h:message for="firstname" /></div>
			<div class="input"><div class="description">#{messageSource['lastname']}*</div><h:inputText id="lastname"
				value="#{user.lastname}" /><h:message for="lastname" /></div>
			<div class="input"><div class="description">#{messageSource['phone']}*</div><h:inputText id="phone"
				value="#{user.phone}" /><h:message for="phone" /></div>
			<p:separator />  
			<h4><h:outputText value="#{messageSource['address']}" class="title"/></h4>	
	
			<div class="input">
				<div class="description">#{messageSource['street']}</div><h:inputText id="street"
				value="#{user.street}" /><h:message for="street" /></div>
			<div class="input">
			<div class="description">#{messageSource['zip']}</div><h:inputText id="zip"
				value="#{user.zip}" /><h:message for="zip" /></div>
			<div class="input"><div class="description">#{messageSource['city']}</div><h:inputText id="city"
				value="#{user.city}" /><h:message for="city" /></div>
			<div class="input"><p:commandButton id="proceed" action="submit" value="Proceed" update="@form" /></div>
		</h:form>
	</ui:define>
</ui:composition>
